package com.shatower.chatctrl.dao.service.impl;

import com.shatower.chatctrl.dao.mapper.CircleMapper;
import com.shatower.chatctrl.dao.pojo.Circle;
import com.shatower.chatctrl.dao.pojo.CircleExample;
import com.shatower.chatctrl.dao.service.CircleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * Created by hhggccll on 2017/10/15.
 */

@Service("circleService")
public class CircleServiceImpl implements CircleService{

    @Autowired
    private CircleMapper circleMapper;

    @Override
    public int insertSelective(Circle record) {
        return circleMapper.insertSelective(record);
    }

    @Override
    public int insert(Circle record) {
        return circleMapper.insert(record);
    }

    @Override
    public List<Circle> selectByExample(CircleExample example) {
        return circleMapper.selectByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer circleid) {
        return circleMapper.deleteByPrimaryKey(circleid);
    }
}
